package com.example.homework.homework03;

/**
 * 女朋友类
 */
public class GirlFriend {
    private String name; // 姓名
    private double height; // 身高
    private double weight; // 体重

    public GirlFriend() {

    }

    public GirlFriend(String name, double height, double weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void wash() {
        System.out.println(this.name + "在洗衣服");
    }

    public void cook() {
        System.out.println(this.name + "在做饭");
    }

    public void show() {
        System.out.println("我女朋友叫" + this.name + "，身高" + this.height + "厘米，体重" + this.weight + "斤");
    }
}
